package com.zudada.servermain.POJO.enums;

public final class RangeConstantsMon {

    private RangeConstantsMon() {
        // 私有构造，防止实例化
    }

    public static final String RANGE_1 = "0-20元";
    public static final String RANGE_2 = "20-50元";
    public static final String RANGE_3 = "50-100元";
    public static final String RANGE_4 = "100-200元";
    public static final String RANGE_5 = "200-400元";
    public static final String RANGE_6 = "400-600元";
    public static final String RANGE_7 = "600-800元";
    public static final String RANGE_8 = "800-1000元";
    public static final String RANGE_9 = "1000元以上";
    public static final String RANGE_0 = "未知区间";

    /**
     * 根据rangeId获取对应显示文本
     */
    public static String getRangeName(int rangeId) {
        switch (rangeId) {
            case 1:
                return RANGE_1;
            case 2:
                return RANGE_2;
            case 3:
                return RANGE_3;
            case 4:
                return RANGE_4;
            case 5:
                return RANGE_5;
            case 6:
                return RANGE_6;
            case 7:
                return RANGE_7;
            case 8:
                return RANGE_8;
            case 9:
                return RANGE_9;
            default:
                return RANGE_0;
        }
    }
}
